home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 426-450 / disk_441 / dme / src / defs.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  3KB  |  126 lines

  1.  
  2. /*
  3.  * DEFS.H
  4.  *
  5.  *    (C)Copyright 1987 by Matthew Dillon, All Rights Reserved
  6.  *
  7.  *    ARexx support added 03/19/88  -  Kim DeVaughn
  8.  *
  9.  */
  10.  
  11. #define AREXX 1
  12.  
  13. #include <exec/types.h>
  14. #include <exec/memory.h>
  15. #include <exec/ports.h>
  16. #include <devices/inputevent.h>
  17. #include <libraries/dos.h>
  18. #include <libraries/dosextens.h>
  19. #include <intuition/intuition.h>
  20.  
  21. #include <stdio.h>
  22. #include <stdlib.h>
  23. #include <string.h>
  24.  
  25. /*
  26.  *  note: if you want Local routines to silently be global, simply
  27.  *  '#define Local' to nothing.
  28.  */
  29.  
  30. #define Prototype extern
  31. #define Local      static
  32.  
  33. #ifdef LATTICE
  34. typedef long size_t;
  35. #endif
  36.  
  37. #define MAXTOGGLE   256
  38. #define QMOVE        (0x6B|0x80)
  39.  
  40. #define COLT(n)  (XTbase + (n) * Xsize)
  41. #define ROWT(n)  (YTbase + (n) * Ysize)
  42. #define COL(n)   (Xbase  + (n) * Xsize)
  43. #define ROW(n)   (Ybase  + (n) * Ysize)
  44.  
  45. /*
  46.  *  code compatibility... try to phase these usages out.
  47.  */
  48.  
  49. #define ARGS(args)  args
  50.  
  51. typedef unsigned char        ubyte;
  52. typedef unsigned short        uword;
  53. typedef unsigned long        ulong;
  54.  
  55. typedef struct MinNode        MNODE;
  56. typedef struct Node        NODE;
  57. typedef struct MinList        MLIST;
  58. typedef struct List        LIST;
  59. typedef struct MsgPort        PORT;
  60. typedef struct Window        WIN;
  61. typedef struct Message        MSG;
  62. typedef struct TextAttr     TA;
  63. typedef struct TextFont     FONT;
  64. typedef struct RastPort     RP;
  65. typedef struct IntuiMessage    IMESS;
  66. typedef struct IntuitionBase    IBASE;
  67. typedef struct Menu        MENU;
  68. typedef struct MenuItem     ITEM;
  69. typedef struct IntuiText    ITEXT;
  70.  
  71. typedef struct _ED {
  72.     MNODE Node;
  73.     WIN *Win;
  74.     FONT *Font;         /*    da font, da font!            */
  75.     long Topline, Topcolumn;
  76.     long Line, Column;
  77.     long Lines, Maxlines;
  78.     ubyte **List;
  79.     ubyte Name[64];
  80.     ubyte Wtitle[130];
  81.     char Modified;
  82.     long  dirlock;        /* directory lock                */
  83.     char iconmode;        /*    window in icon mode            */
  84.  
  85.     /*
  86.      *    CONFIG INFORMATION
  87.      */
  88.  
  89.     char  BeginConfig;
  90.     ubyte Tabstop;
  91.     ubyte Margin;
  92.     char Insertmode;
  93.     char IgnoreCase;
  94.     char Wordwrap;
  95.     short WWCol;        /*    word wrap column            */
  96.     short Winx;         /*    save state of non-icon window        */
  97.     short Winy;
  98.     short Winwidth;
  99.     short Winheight;
  100.     short IWinx, IWiny;     /*    save state of icon window        */
  101.     int   FGPen;
  102.     int   BGPen;
  103.     int   HGPen;
  104.     int   TPen;
  105.     char  EndConfig;
  106. } ED;
  107.  
  108. extern long  BSline, BEline;
  109. extern short BSchar, BEchar;
  110. extern ED    *BEp;
  111.  
  112.  
  113. #ifndef NULL
  114. #define NULL 0
  115. #endif
  116. #ifdef E
  117. #undef E
  118. #endif
  119.  
  120. extern MLIST DBase;
  121. extern MLIST PBase;
  122. extern ED    *Ep;
  123.  
  124. #include "prog-protos.h"
  125.  
  126.